package com.baike.service;

import com.baike.entity.User;
import com.baomidou.mybatisplus.extension.service.IService;

import java.io.UnsupportedEncodingException;
import java.security.NoSuchAlgorithmException;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author x_FG
 * @since 2021-10-29
 */
public interface IUserService extends IService<User> {

    boolean insertUserInfo(User user, Integer[] roleIds) throws UnsupportedEncodingException, NoSuchAlgorithmException;

    User getUserById(Integer uid);

    boolean updateUserInfo(User user, Integer[] roleIds);

    boolean deleteUserById(Integer uid);

    User qurieName(String username);
}
